<?php

class GetFood extends DBConnect
{
	function displayFoods ($fSearch)
	{
		$foodsList = mysql_query("select food_desc from foods_list where food_desc like '$fSearch%'",  $this->conn)
			or die(mysql_error());
		while($foodsRes = mysql_fetch_row($foodsList))
		{
			$food = $foodsRes[0];
			echo "<a href='food=$foodsRes[0]'>".$foodsRes[0]."<br/>";
		}
	
	}

}

class getNutr
{
	function displayNutr()
	{
		if(isset($_GET['food']))
		{
			$protein = mysql_query("select ");
		}
	}
}
?>